package com.ketangpai.admin.entity;

import lombok.Data;
import java.time.LocalDateTime;
import java.util.List;

@Data
public class WorkComment {
    private Integer id;
    private Integer userId;
    private Integer workId;
    private Integer superiorId;
    private Integer respondentId;
    private String content;
    private LocalDateTime commentTime;
    private String replyTo;      // 回复给谁（用户名）
    private Integer parentId;    // 父评论ID，如果是直接评论则为null
    private Boolean isDeleted;   // 是否已删除

    // 非数据库字段
    private String username;
    private String userAvatar;
    private List<WorkComment> replies;
}


